package api_helpers

import (
	"fmt"
	"github.com/gin-gonic/gin"
)

type ResponseData struct {
	StatusCode int
	Message    interface{}
	Data       interface{}
}

func RespondJSON(c *gin.Context, StatusCode int, Message string, payload interface{}) {
	fmt.Println("status ", StatusCode)
	var res ResponseData

	res.StatusCode = StatusCode
	res.Message = Message
	res.Data = payload

	c.JSON(200, res)
}
